package com.bitBusy.manageyourriches.database.structureDetails;


public class DBTablesMapping implements ParentChildrenMapping {

	private String DBName;
	
	public DBTablesMapping(String the_dbName)
	{
		DBName = the_dbName;
	}
	@Override
	public Class<?>[] getConstituents() {
		
		Class<?>[] constituents = null;
		if (DBName != null)
		{
			for(DBTablesEnum db: DBTablesEnum.values())
			{
				if(db.getName().equals(DBName))
				{
					constituents = db.getTables();
					break;
				}
			}
		}
		return constituents;
	}

}
